package cn.luoyifan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient
//开启Feign支持 ， 默认扫描当前包机及其子包中的所有@FeignClient的接口，进行动态代理
//可以通过basePackages扫描指定的路径
@EnableFeignClients(basePackages = "cn.luoyifan.feign.clients")
public class PayApplication {

    public static void main(String[] args) {
        SpringApplication.run(PayApplication.class);
    }
}
